package com.transaction.demo.accounting;

import feign.Request;
import feign.Retryer;
import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
 
@Configuration
public class SpecificFeignConfig {
    @Bean
    public Request.Options options() {
        // 为这个接口设置不同的超时时间
        return new Request.Options(3000, 6000); // 连接超时3秒，读取超时6秒
    }
}